package com.kuang.service;

import com.kuang.dao.suplierMapper;
import com.kuang.pojo.supplier;

import java.util.List;

public class supplierServiceImpl implements supplierService {
   private com.kuang.dao.suplierMapper suplierMapper;

    public void setSuplierMapper(com.kuang.dao.suplierMapper suplierMapper) {
        this.suplierMapper = suplierMapper;
    }

    @Override
    public List<supplier> getSupplier() {
       return suplierMapper.getSupplier();
    }

    @Override
    public int addSupplier(supplier supplier) {
        return suplierMapper.addSupplier(supplier);
    }

    @Override
    public int updateSupplier(supplier supplier) {
        return suplierMapper.updateSupplier(supplier);
    }

    @Override
    public int deletesupplierById(int id) {
        return suplierMapper.deletesupplierById(id);
    }

    @Override
    public List<supplier> getsupplierByName(String company) {
        return suplierMapper.getsupplierByName(company);
    }

    @Override
    public supplier getsupplierById(int id) {
        return suplierMapper.getsupplierById(id);
    }
}
